import request from "@/http/request";

export function getArticles(params){
    if(params.tags!==undefined){
        params.tags=params.tags.join()
    }
    return request(({
        url: '/get',
        method: 'get',
        params
    }))
}
export function checkArticle(id){
    return request(({
        url: '/article/check/'+id,
        method: 'put',
    }))
}
export function openMdFileLocal(id){
    return request({
        url: '/openFile?articleId=' + id,
        method:'get'
    })
}
